<template>
  <div class="navhead">
    <div>
      <ul class="navheadleft"  id='bindcolor'>
        <li>
          <a href="#">
            <img src="./../../../static/logo.png"></img>
          </a>
        </li>
        <li >
          <span class="icon-dowm" @click="dialogVisible = true"><i class="fa fa-chevron-down"></i></span>
          <template>
            <el-select v-model="value" placeholder="请选择" class="inpselelct" size="mini">
              <!-- <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> -->
              <!-- </el-option> -->
            </el-select>
          </template>
        </li>
      </ul>
      <ul class="centerhead">
        <!-- <li v-for="item in option" @click="activeclass" v-bind:class="{activeli: isActive}">{{item.value}}</li> -->
      </ul>
      <ul class="righthead">
        <span  @click="outerVisible = true" style="padding-right:3px">你好，请登录!</span>
        <span>|</span>
        <span @click="zck = true"> 免费注册</span>
        <span>|</span>
        <span>我的订单</span>
        <span>|</span>
        <span>个人中心</span>
        <span>|</span>
        <span>企业采购</span>
        <span>|</span>
        <span>客户服务</span>
      </ul>
      <ul class="inpsele">
        <li>
          <template>
            <el-select v-model="value2" placeholder="请选择" class="inpselelct" size="mini">
              <el-option v-for="item in options2" :key="item.value" :label="item.label" :value="item.value">
              </el-option>
            </el-select>
          </template>
        </li>
        <li>
          <input type="text" class="inpent">
          <div class="soso">
            <img src="./../../assets/ser.png" alt="">
          </div>
        </li>
      </ul>
    </div>
     <!--弹窗地址选择-->
    <el-dialog title="城市选择" :visible.sync="dialogVisible" width="35%" :before-close="handleClose">
      <span>
        <br>
        <div class="select"> 
          <ul>
            <li style="margin-left: -15%;">
              <el-select v-model="value" placeholder="请选择" style="width:50%;float:left">
              <el-option v-for="item in options3" :key="item.value" :label="item.label" :value="item.value">
              </el-option>
            </el-select>
            <el-select v-model="value" placeholder="请选择"  style="width:50%;float:left">
              <el-option v-for="item in options4" :key="item.value" :label="item.label" :value="item.value">
              </el-option>
            </el-select>
            </li>
          </ul>
        </div>
      </span>
      <span slot="footer" class="dialog-footer" style="padding-top:5px">
        <el-button @click="dialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
      </span>
    </el-dialog>
    <!-- 登录弹窗 -->
    <template>
      <el-dialog title="登录" :visible.sync="outerVisible" width="35%">
        <div class="brclass"></div>
        <span>
          <div style="margin-top: 10px;margin-left: 39px">
            <span style="padding-right: 23px;">账号:</span>
            <el-input v-model="input1" placeholder="请输入账号" style="width:70%;margin-top: 10px;"></el-input>
            <br>
            <span style="padding-right: 23px;">密码:</span>
            <el-input v-model="input2" placeholder="请输入密码" style="width:70%;margin-top: 10px;"></el-input>
          </div>
          <!-- 记住账号 -->
          <div>
            <input type="checkbox" v-model="seen" class="inputcheckbox"><span class="inputcheckspan">记住账号</span>
            <div class="passwords">
              <span @click="wjmm = true">忘记密码 </span>
              <span>|</span>
              <span @click="zck = true">注册账号</span>
            </div>
          </div>
        </span>
        <div slot="footer" class="dialog-footer" id="dialog-footer">
          <el-button @click="outerVisible = false">取 消</el-button>
          <el-button  type="primary" @click="outerVisible = false">确定</el-button>
        </div>
      </el-dialog>
    </template>
    <!-- 注册框 -->
    <template>
       <el-dialog width="35%" title="注册账号" :visible.sync="zck" append-to-body>
           <div class="brclass"></div>
           <div class="zcbox">
             <el-tabs v-model="activeName" @tab-click="handleClick">
             <el-tab-pane label="个人注册" name="first">
               <!-- 个人注册 -->
            <div style="margin-top: 10px;margin-left: 0px">
              <ul>
                <li>
                  <span style="padding-right: 22px;">手机号:</span>
                <el-input v-model="input1" placeholder="请输入账号" style="width:70%;margin-top: 10px;"></el-input>
                </li>
                <li>
                   <span style="padding-right: 9px;">图形验证:</span>
                <el-input v-model="input2" placeholder="请输入右侧字符" style="width:37%;margin-top: 10px;"></el-input>
                </li>
                <li>
                   <span style="padding-right: 9px;">短信验证:</span>
                <el-input v-model="input2" placeholder="请输入短信验证码" style="width:37%;margin-top: 10px;"></el-input>
                 <div class="fsdx" style="float: right;width: 84px;height: 37px;border: 1px solid #ccc;margin-top: 11px;margin-right: 17%;border-radius: 5%;text-align: center;
    line-height: 37px;">
                   发送短信
                 </div>
                </li>
                <li>
                  <span style="padding-right: 36px;">密码:</span>
                <el-input v-model="input2" placeholder="请输入密码" style="width:70%;margin-top: 10px;"></el-input>
                </li>
                <li>
                  <p style="margin-top: 15px;color: red;">请输入手机号</p>
                  <p style="float: right;margin-top: -19px;margin-right: 56px;">隐藏密码</p>
                </li>
                <li>
                  <div style="    float: right;margin-top: 15px;">
                     <el-button @click="zck = false">取 消</el-button>
                     <el-button  type="primary" @click="zck = false">确定</el-button>
                  </div>
                </li>
              </ul>
             <br>
             </div>
             </el-tab-pane>
             <el-tab-pane label="企业注册" name="second">配置管理</el-tab-pane>
             </el-tabs>
           </div>
        </el-dialog>
    </template>
    <!-- 忘记密码 -->
      <el-dialog width="35%" title="忘记密码" :visible.sync="wjmm" append-to-body >
          <div class="brclass"></div>
          <div class="zcbox" style="height:290px">
          <div style="margin-top: 10px;margin-left: 0px">
            <ul>
              <li>
                <span style="padding-right: 22px;">手机号:</span>
                <el-input v-model="input1" placeholder="请输入账号" style="width:70%;margin-top: 10px;"></el-input>
              </li>
              <li>
                <span style="padding-right: 9px;">图形验证:</span>
                <el-input v-model="input2" placeholder="请输入右侧字符" style="width:37%;margin-top: 10px;"></el-input>
              </li>
              <li>
                 <span style="padding-right: 9px;">短信验证:</span>
                <el-input v-model="input2" placeholder="请输入短信验证码" style="width:37%;margin-top: 10px;"></el-input>
                 <div class="fsdx" style="float: right;width: 84px;height: 37px;border: 1px solid #ccc;margin-top: 11px;margin-right: 17%;border-radius: 5%;text-align: center;
    line-height: 37px;">
                   发送短信
                 </div>
              </li>
              <li>
                 <span style="padding-right: 23px;">新密码:</span>
                <el-input v-model="input2" placeholder="请输入密码" style="width:70%;margin-top: 10px;"></el-input>
              </li>
              <li>
                <div style="float: right;margin-top: 15px;">
                     <el-button @click="wjmm = false">取 消</el-button>
                     <el-button  type="primary" @click="wjmm = false">确定</el-button>
                  </div>
              </li>
            </ul>
          </div>
        </div>
      </el-dialog>
  </div>
</template>
<script>
export default {
  name: "navhead",
  data() {
    return {
      activeName: 'first',
      wjmm:false,
      options: [],
      value: "北京",
      options2: [
        {
          value: "选项1",
          label: "商品"
        }
      ],
      options3: [
        {
          value: "选项1",
          label: "商品"
        },
        {
          value: "选项2",
          label: "店铺"
        }
      ],
      options4: [
        {
          value: "选项1",
          label: "商品"
        },
      ],
      value2: "商品",
      dialogVisible: true,
      outerVisible: false,
      zck:false,
      input1: "",
      input2: "",
      seen: true,
      isActive:false
    };
  },
  methods: {
    activeclass: function() {
      alert('ok')
      var that=this
      that.isActive=true;
    },
    handleClose(done) {
      this.$confirm("确认关闭？")
        .then(_ => {
          done();
        })
        .catch(_ => {});
    },
     handleClick(tab, event) {
        console.log(tab, event);
      }
  }
};
</script>
<style>
.navhead {
  width: 99.89%;
  height: 35px;
  border-bottom:1px solid #ccc;
}

.navheadleft {
  margin-left: 3%;
}
.navheadleft img{
  width: 35px;
}
.navheadleft li:first-child {
  padding-top: 3px;
}

.navheadleft li:nth-child(2) {
  padding-top: 4px;
}
.navheadleft li:nth-child(2)>span{
  position: relative;
}
.navheadleft li {
  list-style: none;
  float: left;
}

.inpselelct {
  width: 80px;
}

.centerhead {
  margin-left: 8%;
}

.centerhead li {
  list-style: none;
  float: left;
  font-size: 17px;
  line-height: 55px;
  margin-left: 4%;
}

.inpsele {
    float: right;
    margin-top: 5px;
    padding-right: 13%;
}

.inpsele li {
  float: left;
  list-style: none;
  margin-right: 1px;
  margin-top: -1px;
}

.inpsele li:nth-child(2) {
  position: relative;
}

.inpent {
  width: 182%;
  height: 22px;
  border-radius: 6px;
  margin-top: 1px;
  border: 1px solid #ccc;
}

.righthead {
  font-size: 6px;
  float: right;
  line-height: 35px;
  color: #6d6464;
  padding-right: 10px;
}
.righthead span:first-child:hover{
  color:green;
}
.righthead span:nth-child(3){
  color: red;
}
.righthead > li span {
  float: left;
}

.righthead > li span:nth-child(2) {
  margin-left: 5%;
}

.righthead > li span:nth-child(3) {
  margin-left: 5%;
  font-size: 13px;
  line-height: 24px;
}

.righthead > li span:nth-child(4) {
  margin-left: 2%;
  margin-right: 2%;
}

.righthead > li span:nth-child(5) {
  font-size: 10px;
  line-height: 24px;
}

.el-select-dropdown__empty {
  display: none;
}

.soso {
  position: absolute;
  top: 4px;
  right: -138px;
}

.brclass {
  width: 90%;
  height: 1px;
  background: #ccc;
  margin: 0 auto;
}
.activeli{
  background: red;
}
.el-carousel {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}
/* .el-input--suffix .el-input__inner {
    padding-right: 26px;
    height: 25px;
    width: 75px;
} */
.el-input__icon {
    height: 100%;
    width: 25px;
    text-align: center;
    -webkit-transition: all .3s;
    transition: all .3s;
    line-height: 26px;
}
.icon-dowm{
    position: absolute;
    top: 0px;
    left: 64px;
    z-index: 99999;
    font-size: 10px;
    color: #7d7575;
}
.select{
 margin-left:18%;
}

.el-select>.el-input {
    display: block;
    width: 89%;
    padding-bottom: 5px;
}
.el-dialog__body {
    padding: 0px 0px;
    color: #606266;
    font-size: 14px;
}
.inputcheckbox{
  width: 105px;
  height: 12px;
  border: 1px solid #ccc;
  float: left;
  margin-top: 13px;
}
.inputcheckspan{
  float: left;
  margin-top: 8px;
  margin-left: -41px;
}
.passwords{
  float: right;
  margin-right: 53px;
  margin-top: 5px;
}
.passwords span{
  color:  #19a79a;
}
#dialog-footer{
  padding-top: 30px;
}
.zcbox{
  width: 90%;
    height:395px;
    /* background: red; */
    margin: 0 auto;
}
.fsdx:hover{
  transition: all 0.5s linear;
  background: #ccc;
}
</style>